package mespp.processManage.model.dao;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;

import mespp.processManage.dto.ResultInquiryDTO;

import org.springframework.orm.ibatis.SqlMapClientTemplate;

public class ProcessManageDAOImpl implements ProcessManageDAO {
	private SqlMapClientTemplate client;

	public void setSqlMapClient(SqlMapClientTemplate client) {
		this.client = client;
	}

	@Override
	public ArrayList selectProgressList(HashMap paramMap) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ArrayList<ResultInquiryDTO> selectPutResultList(HashMap paramMap) throws SQLException {
		return (ArrayList<ResultInquiryDTO>)client.queryForList("resultInquiry.selectPutResultList", paramMap);
	}

	@Override
	public ResultInquiryDTO selectFinishAndFaultyResultById(HashMap paramMap)
			throws SQLException {
		return (ResultInquiryDTO)client.queryForObject("resultInquiry.selectFinishAndFaultyResultById", paramMap);
	}

	@Override
	public ArrayList selectFaultyResultList(HashMap paramMap)
			throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}
	
}
